package cn.tedu.spring.auto;

import cn.tedu.spring.di.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/*
测试
 */
public class TestUserCache {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu.spring.auto");
        UserCache userCache=context.getBean(UserCache.class);
        System.out.println("userCache="+userCache);
    }

}
